<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-7-29
 * Time: 上午9:42
 */

namespace common\models\db;

/**
 * Class RoleAction
 * @package common\models\db
 *
 * @property Role $role
 * @property Action $action
 */
class RoleAction extends \common\models\db\tables\RoleAction
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getRole()
    {
        return $this->hasOne(Role::className(), ['id' => 'role_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getAction()
    {
        return $this->hasOne(Action::className(), ['id' => 'action_id']);
    }
}